/**
 * Created by dywu on 2015/9/24.
 */
angular.module('operator.user', [
    'ngCookies'
])
    .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('operator.list', {
                url: '/operator/list',
                templateUrl: operator_viewurl + "/operator/list.html",
                controller: 'OperatorListController'
            })

    }])

    .controller('OperatorListController', ['$scope','$cookieStore', '$state', 'OperatorService', function ($scope,$cookieStore, $state, OperatorService) {
        OperatorService.getOperator().$promise.then(function(data){
            $scope.operators = data;
        })
    }]);